

package com.maoshi.shop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.model.OfflineHandleEvent;
import com.maoshi.shop.bean.param.OfflineHandleEventAuditParam;

/**
 * 下线处理事件
 *
 * @author
 * @date 2019-09-20 10:44:58
 */
public interface OfflineHandleEventService extends IService<OfflineHandleEvent> {
    /**
     * 提交申请
     */
    void apply(Long eventId, String reapplyReason);

    /**
     * 通过事件类型和所属id获取正在处理的下线事件信息
     */
    OfflineHandleEvent getProcessingEventByHandleTypeAndHandleId(Integer eventType, Long handleId);

    /**
     * 更新下线时间为申请状态
     */
    void updateToApply(Long eventId, String reapplyReason);

    /**
     * 审核下线事件
     */
    void auditOfflineEvent(OfflineHandleEventAuditParam offlineHandleEventAuditParam, Long sysUserId);
}
